 {literal}
        <script type="text/javascript">
            $(document).ready(function() {
		$("select[name='jo_status']").change(function() {
		       if($("select[name='jo_status']").val() == '2') {
				$.fancybox({
				    centerOnScroll : true,
				    modal : true,
				    content : "<div style=\"text-align:center;width:250px;\"><h2>Alert!</h2>Once the job status is changed to Closed, a notification email will be sent to all the recruiters approved to work on this job. This also means, they will no longer be able to submit candidates to this job. You can change the job status back to Open at anytime.<br/><br/><input id=\"fancyConfirm_ok\" type=\"button\" value=\"Close Job\" class=\"button-secondary\"><input id=\"fancyConfirm_cancel\" type=\"button\" value=\"Cancel\" class=\"button-secondary\"></div>",
				    onComplete : function() {
					jQuery("#fancyConfirm_cancel").click(function() {
						ret = false;
						$("select[name='jo_status']").val('1');
						jQuery.fancybox.close();
					})
					jQuery("#fancyConfirm_ok").click(function() {
						ret = true;
						jQuery.fancybox.close();
					})
				    },
				 });
			}
		});
            });
        </script>
{/literal}
<div class="col_02" id="midPart_box">
	<div class="midPart_c ">
		<div class="userBox ">
			  <div class="m-t"><h2>{$title}{$righttitle}<span style="position:relative;float:right;">{$preview}</span></h2></div>
	{if $content!=''}
        <div class="u_title"><h2>{$content}</h2></div>
	{/if}
	{if $err!=''}
	<div class="u_title" style="color:red;font-size:12px">{$err}</div>
	{/if}
	<div class="u_c main-wrap">
		<div class="userForm">{$reg}</p>
		</div>
	</div>
	
	<script>
	{if $splitfee <> 1}
		document.getElementById('jobsplit').style.display = "none";
	{/if}
	{literal}
		function changeOptions(x){
			if(document.getElementById('jo_cat').value == 2){
				document.getElementById('jobsplit').style.display = "table-row";
			}else{
				document.getElementById('jobsplit').style.display = "none";
			}
		}
	</script>
	{/literal}
</div>
	</div>
</div>